<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>

<?php 
	$ci = &get_instance();
	$USER = $ci->user_entity->init('id',$ESCORT->getUserId());
	
	$sexArray = getSexOptionData_ioc();
	$sexualOrientationArray = getSexualOrientationData_ioc();
	$languageArray = getLanguagesOptionData_ioc();
	$countryArray = getCountryData_ioc();
	$breastsSizeOptionArray = getBreastsSizeOptionData_ioc();
	$penisSizeOptionArray = getPenisSizeOptionData_ioc();
?>

<?php if( $ESCORT->getPublicSex() == 1 ): ?>
	<div class="escort-infor-item-wrapper">
		<div class="escort-infor-item-left">
			<span><?php echo language_translate('personal_info_sex');?></span>
		</div>
		<div class="escort-infor-item-right">
			<span><?php echo $sexArray[$ESCORT->getSex()];?></span>
		</div>
		<div class="clear"></div>
	</div>
<?php endif; ?>

<?php if($ESCORT->getSex() == SEX_OPTION_MALE_ID):?>
	<?php if( $ESCORT->getPublicPenisSize() == 1 ): ?>
		<div class="escort-infor-item-wrapper">
			<div class="escort-infor-item-left">
				<span><?php echo language_translate('personal_info_penis_size');?></span>
			</div>
			<div class="escort-infor-item-right">
				<span><?php echo $penisSizeOptionArray[$ESCORT->getPenisSizeId()];?></span>
			</div>
			<div class="clear"></div>
		</div>
	<?php endif;?>
<?php endif;?>

<?php if($ESCORT->getSex() == SEX_OPTION_FEMALE_ID):?>
	<?php if( $ESCORT->getPublicBreastsSize() == 1 ): ?>
		<div class="escort-infor-item-wrapper">
			<div class="escort-infor-item-left">
				<span><?php echo language_translate('personal_info_breasts_size');?></span>
			</div>
			<div class="escort-infor-item-right">
				<span><?php echo $breastsSizeOptionArray[$ESCORT->getBreastsSizeId()];?></span>
			</div>
			<div class="clear"></div>
		</div>
	<?php endif;?>
<?php endif;?>

<?php if( $ESCORT->getPublicSexualOrientation() == 1 ): ?>
	<div class="escort-infor-item-wrapper">
		<div class="escort-infor-item-left">
			<span><?php echo language_translate('personal_info_sexual_orientation');?></span>
		</div>
		<div class="escort-infor-item-right">
			<span><?php echo $sexualOrientationArray[$ESCORT->getSexualOrientationId()];?></span>
		</div>
		<div class="clear"></div>
	</div>
<?php endif; ?>

<?php if( $ESCORT->getPublicBirthDate() == 1 ): ?>
	<div class="escort-infor-item-wrapper">
		<div class="escort-infor-item-left">
			<span><?php echo language_translate('personal_info_birthdate');?></span>
		</div>
		<div class="escort-infor-item-right">
			<span><?php echo $ESCORT->getBirthDate() ? sysDateFormat($ESCORT->getBirthDate(), DATE_FORMAT):'';?></span>
		</div>
		<div class="clear"></div>
	</div>
<?php endif; ?>

<?php if( $ESCORT->getPublicLanguageIds() == 1 ): ?>
	<div class="escort-infor-item-wrapper">
		<div class="escort-infor-item-left">
			<span><?php echo language_translate('personal_info_languages');?></span>
		</div>
		<div class="escort-infor-item-right">
			<span>
			<?php
				$my_language_array = array_filter( explode(',',$ESCORT->getLanguageIds()) );
				$langArray = array();
				foreach($my_language_array as $id){
					$langArray[] = $languageArray[$id];
				}
				echo implode(' / ',$langArray);
			?></span>
		</div>
		<div class="clear"></div>
	</div>
<?php endif; ?>

<?php if( $ESCORT->getPublicCountry() == 1 ): ?>
	<div class="escort-infor-item-wrapper">
		<div class="escort-infor-item-left">
			<span><?php echo language_translate('personal_info_country');?></span>
		</div>
		<div class="escort-infor-item-right">
			<span><?php echo $countryArray[$USER->getCountryId()];?></span>
		</div>
		<div class="clear"></div>
	</div>
<?php endif; ?>